﻿<%@ Page Language="C#" AutoEventWireup="true" Theme="skin_control" CodeFile="DraftSpecialPlan.aspx.cs"
    Inherits="SpecialPlan_DraftSpecialPlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>待发专项计划</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td class="firstbjcolor" style="height: 14px;">
                    <span class="currentHere">当前位置:专项计划管理-&gt;查看待发专项计划</span>
                </td>
            </tr>
            <tr>
                <td style="height: 1; width: 100%;">
                </td>
            </tr>
            <tr>
                <td colspan="8" style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x;
                    height: 30px;">
                    部门:<asp:DropDownList ID="drpDepartment" runat="server" SkinID="dropdownlistSkin"
                        AutoPostBack="True">
                    </asp:DropDownList>
                    <asp:CheckBox ID="ckbAllSelect" runat="server" AutoPostBack="True" SkinID="checkboxSkin"
                        Text="全选" OnCheckedChanged="ckbAllSelect_CheckedChanged1" />&nbsp;
                    <asp:Button ID="btnDel" runat="server" Text="删除" SkinID="buttonSkin" OnClientClick="return confirm('确认要删除吗？');"
                        OnClick="btnDel_Click" />&nbsp;<asp:Button ID="btnMofify" runat="server" Text="修改"
                            SkinID="buttonSkin" OnClick="btnMofify_Click" />
                    <asp:Button ID="btnSubmit" runat="server" Text="立即提交" SkinID="buttonSkin" OnClientClick="return confirm('确认要提交吗？');"
                        Width="60px" OnClick="btnSubmit_Click" />
                    <asp:Button ID="btnUpload" runat="server" Text="上传文件" SkinID="buttonSkin" Width="60px"
                        OnClick="btnUpload_Click" />
                </td>
            </tr>
            <tr>
                <td style="height: 1; width: 100%;">
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div style="height: 14px; width: 98.1%" id="Div1">
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="100%">
                            <tr style="background-color: #ffffff;">
                                <td class="PlanModifyTableHeader" style="width: 4%" align="center">
                                    选择
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 4%" valign="middle" align="center">
                                    计划编号
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 14%">
                                    计划名称
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                    开始时间
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                    完成时间
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                    责任部门
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 7%">
                                    责任人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a>
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 7%">
                                    配合部门<a href="#" onclick="javascript:slavedepartment(parentNode.firstChild.id );"></a>
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    配合部门责任
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" style="width: 8%" align="center">
                                    优先级
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" style="width: 5%" align="center">
                                    评估人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a>
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 10%" valign="middle" align="center">
                                    备注
                                </td>
                                <td align="center" class="PlanModifyTableHeader" style="width: 7%" valign="middle">
                                    附件下载
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div style="overflow-y: scroll; height: 500px; width: 100%" id="dvBody">
                        <asp:GridView ID="gdvSpecialPlan" runat="server" DataKeyNames="AttachmengPath,Id"
                            AutoGenerateColumns="False" Width="98.1%" SkinID="gridviewSkin" 
                            ShowHeader="False" EnableModelValidation="True">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" Width="90%" SkinID="checkboxSkin" />
                                    </ItemTemplate>
                                    <ItemStyle Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                    <HeaderStyle Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="SpecialPlanSortId" HeaderText="计划编号">
                                    <HeaderStyle Wrap="False" Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                </asp:BoundField>
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="14%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="14%" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StartTime" HeaderText="开始时间" DataFormatString="{0:yyyy-MM-dd}" 
                                    HtmlEncode="False">
                                  <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="true" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                    HtmlEncode="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="true" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                                    <HeaderStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                    <HeaderStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="7%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                    <HeaderStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="7%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                                    <HeaderStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="10%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ImportantDegree" HeaderText="重要程度">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                    <HeaderStyle Width="5%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="5%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Remart" HeaderText="备注">
                                    <HeaderStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="10%" HorizontalAlign="Left" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="附件下载">
                                    <ItemTemplate>
                                        <asp:Button ID="btnDownLoad" runat="server" Text="下载" SkinID="buttonSkin" />
                                        <asp:Label ID="lblAlert" runat="server" Visible="False" SkinID="labelSkin"></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Width="7%" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" Wrap="False" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="Id" HeaderText="id" Visible="False"></asp:BoundField>
                                <asp:BoundField DataField="AttachmengPath" HeaderText="文件保存路径" Visible="False"></asp:BoundField>
                            </Columns>
                            <HeaderStyle Font-Bold="False" />
                        </asp:GridView>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
